﻿#pragma once
#include "..\btcomputer\bluetoothstack.h"

class MicrosoftInterface :
	public BluetoothStack
{
// ======================================================================================
// Internal cousine
// ======================================================================================
	WORD			wVersionRequested;
	WSADATA			wsaData;
	WSAQUERYSET		wsaq;
	LPWSAQUERYSET	pwsaResults;
	UINT8			lastDevice;

// ======================================================================================
// Outside world
// ======================================================================================
public:
	MicrosoftInterface(void);
	~MicrosoftInterface(void);

	RESULT InitBluetooth();
	RESULT SearchDevices();
	RESULT Connect( UINT8 ) ;
	RESULT Disconnect( UINT8 );
	RESULT Send( BYTE*, UINT16 );
	RESULT Receive( char*, UINT16);
};
